package rule;

import entity.Student;

/**
 * <p>
 * 学生对象规则
 * </P>
 *
 * @author dingwen
 * @date 2021.09.09 10:34
 */
public class StudentRule extends AbstractBaseRule<Double, Student> {
    @Override
    Double executeObject(RuleDto<Student> ruleDto) {
        if ("dingwen".equals(ruleDto.getValue().getName())) {
            return 100.0;
        }
        return 0.0;
    }
}
